package org.dromara.business.domain.bo;

import org.dromara.business.domain.ContentReview;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 统一内容审核记录业务对象 t_content_review
 *
 * @author Hao Tong Xue
 * @date 2025-04-21
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = ContentReview.class, reverseConvertGenerate = false)
public class ContentReviewBo extends BaseEntity {

    /**
     * 审核记录ID
     */
    @NotNull(message = "审核记录ID不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 内容ID
     */
    @NotNull(message = "内容ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long contentId;

    /**
     * 内容类型：1-视频，2-音频，3-文章
     */
    @NotNull(message = "内容类型：1-视频，2-音频，3-文章不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer contentType;

    /**
     * 审核人员ID
     */
    @NotNull(message = "审核人员ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long reviewerId;

    /**
     * 审核状态：0-待审核，1-通过，2-驳回，3-需修改
     */
    @NotNull(message = "审核状态：0-待审核，1-通过，2-驳回，3-需修改不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer reviewStatus;

    /**
     * 审核意见
     */
    @NotBlank(message = "审核意见不能为空", groups = { AddGroup.class, EditGroup.class })
    private String reviewComment;

    /**
     * 审核时间
     */
    @NotNull(message = "审核时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date reviewTime;

    /**
     * 审核轮次
     */
    @NotNull(message = "审核轮次不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer reviewRound;

    /**
     * 需要修改的内容
     */
    private String requiredModifications;

    /**
     * 是否自动审核：0-人工，1-自动
     */
    @NotNull(message = "是否自动审核：0-人工，1-自动不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer autoReview;

    /**
     * 备注
     */
    private String remark;


}
